const CostCenterAssignmentComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/setting/cost-center-assignment/cost-center-assignment").default);
  },"cost-center-assignment")
};
const CostCenterAssignmentDetail = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/setting/cost-center/cost-center-item/cost-center-item-detail").default);
  },"cost-center-assignment-detail")
};

//成本中心项分配
const CostCenterAssignment =    {
  key: 'cost-center-assignment',
  url: '/main/setting/cost-center-assignment',
  components: CostCenterAssignmentComp,
  parent: 'setting',
  children: {
    //城市组信息
    CostCenterAssignmentDetail: {
      key: 'cost-center-assignment-detail',
      url: '/main/setting/cost-center-assignment/cost-center-assignment-detail/:id/:costId',
      components: CostCenterAssignmentDetail,
      parent: 'cost-center-assignment',
    },
  }
};

export default CostCenterAssignment;
